package com.codebattery.config;//package com.codebattery.config;

import com.codebattery.util.EsUtil;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author cay91
 * @Date 2020-08-27 11:12 PM
 * @Version 1.0
 */
@Data
@Configuration
public class EsConfig extends EsUtilBaseConfig {

    @Value("${es.host}")
    String host;
    @Value("${es.port}")
    String port;
    @Value("${es.scheme}")
    String scheme;


    @Bean
    public EsUtil esUtil(){
        return new EsUtil(this);
    }

}
